home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 February
/
Gamestar_81_2006-02_dvd.iso
/
Red Shark
/
Common
/
CountryShop.script
< prev
next >
Wrap
Text File
|
2001-12-21
|
1KB
|
59 lines
//-------------------------------------------------------------------
//
// This code is copyright 2001 by G5 Software.
// Any unauthorized usage, either in part or in whole of this code
// is strictly prohibited. Violators WILL be prosecuted to the
// maximum extent allowed by law.
//
//-------------------------------------------------------------------
class CCountryShopMesh_1
{
string MeshFile = "Models/B_Country_Shop_1.mesh";
string SkinFile = "Models/B_Country_Shop_1.skin";
}
class CCountryShopMesh_2
{
string MeshFile = "Models/B_Country_Shop_2.mesh";
string SkinFile = "Models/B_Country_Shop_2.skin";
}
class CCountryShopStateControl extends CUnitLifeControl
{
void CCountryShopStateControl()
{
CUnitLifeControl(3500.0);
m_DestroyPause = 20.0;
m_ExplosionId = "EXPLID_BuildingExplosion";
}
}
// Building without ground control (for use in villages)
class CBaseCountryShop extends CBuilding, CUnitWithStateControl
{
array m_MeshClassNames = array(
"CCountryShopMesh_1",
"CCountryShopMesh_2"
);
void CBaseCountryShop()
{
int MeshNumber = rand_int(m_MeshClassNames.size());
InitializeModelAsStatic(m_MeshClassNames[MeshNumber]);
CUnitWithStateControl("CCountryShopStateControl");
}
}
// Single game object
class CMountedCountryShop extends CBaseCountryShop
{
void CMountedCountryShop()
{
InitializeGroundControl();
}
}